StoreEngine\Utils\Formatting D

Total Complexity 217
Dependencies 14
Dependents 36
Total lines 1,381
Lines of code 691
Logical lines of code 432
Comment lines 511
Methods 55
Properties 0

Methods 55

Method Rating Maintainability Complexity Lines of code
get_price_including_tax()
B
39 16 61
format_postcode()
B
43 17 45
array_merge_recursive_numeric()
A
48 13 33
get_dimension()
A
47 12 37
timezone_string()
A
50 11 26
get_weight()
A
49 10 32
get_price_excluding_tax()
A
48 9 31
cart_totals_order_total_html()
A
50 9 25
price()
S
50 7 25
format_decimal()
S
51 7 24
string_to_datetime()
S
52 6 22
get_price_to_display()
S
53 5 22
get_price_format()
S
56 5 19
make_numeric_postcode()
S
56 4 17
string_to_bool()
S
72 5 4
format_datetime()
S
61 4 12
format_sale_price()
S
59 3 13
cart_totals_fee_label()
S
62 3 11
cart_totals_coupon_label()
S
62 3 11
add_number_precision()
S
65 3 8
bool_to_string()
S
69 3 6
format_price_range()
S
72 3 4
cart_totals_coupon_html()
S
60 3 10
add_number_precision_deep()
S
64 3 9
clean()
S
68 3 7
remove_number_precision_deep()
S
65 3 9
format_weight()
S
59 2 14
format_dimensions()
S
59 2 14
string_to_timestamp()
S
62 2 12
timezone_offset()
S
64 2 9
is_datetime()
S
78 2 3
time_format()
S
68 2 7
date_format()
S
68 2 7
format_localized_decimal()
S
68 2 6
remove_number_precision()
S
68 2 7
strtolower()
S
74 2 4
sanitize_coupon_code()
S
72 2 4
strtoupper()
S
74 2 4
sanitize_permalink()
S
63 2 10
float_to_string()
S
66 2 8
round_tax_total()
S
70 2 5
format_phone_number()
S
69 2 6
get_rounding_precision()
S
66 2 8
get_price_decimal_separator()
S
74 2 4
get_currency()
S
78 1 3
normalize_postcode()
S
77 1 3
get_price_decimals()
S
77 1 3
get_currency_position()
S
78 1 3
get_price_thousand_separator()
S
78 1 3
trim_zeros()
S
76 1 3
round_discount()
S
74 1 4
format_localized_price()
S
77 1 3
format_coupon_code()
S
79 1 3
get_base_rounding_precision()
S
78 1 3
init_hooks()
S
72 1 5